#pragma once
#include "SysSceneState.h"
#include "SubStructure.h"
#include "Textout.h"
#include "jsonreader.h"
#include "AudioOut.h"

class SysSceneMusic : public SysSceneState
{
public:
	~SysSceneMusic();
	static SysSceneState* Instance();
	void Init();
	void Draw();
	void Update(const KeyInput* input);
	void Reset();
private:
	SysSceneMusic();
	static SysSceneMusic* p_this;

	DWORD TickCount;
	DWORD NowState;
	DWORD sceneChange;
	DWORD changeCount;
	
	LPDIRECT3DTEXTURE9 SceneBack;
	LPDIRECT3DTEXTURE9 SceneMask;
	LPDIRECT3DTEXTURE9 ConfigTex;
	
	BackgroundImage* background;
	BackgroundImage* backMask;
	
	Textout* MusicName[15];
	Textout* MusicInfo;
	string MusicInfoString[15];

	jsonreader* loadData;
	
	AudioOut* audio;
};
